function getAccessId(id, user_id) {

    $.ajax({
        type: 'POST',
        url: '/admin/stick_pic/resume',
        data:{
            id:id,
            user_id:user_id
        },
        dataType: 'json',
        success:function (e) {
            if (e.code == 200){
                $("#access").disable = false;


            } else{

            }
            layer.msg(e.msg);
            window.location.reload();
        },
        error:function (e) {
            console.log(e);
            return false;
            layer.msg("网络在开小差");
        }
    });
   }


function getResumeId(id, user_id) {
    // console.log(id);
    // console.log(user_id);
    $.ajax({
        type: 'POST',
        url: '/admin/stick_pic/resume',
        data:{
            id:id,
            user_id:user_id
        },
        dataType: 'json',
        success:function (e) {
            if (e.code == 200){
                $("#access").disable = false;
            } else{

            }
            layer.msg(e.msg);
            window.location.reload();
        },
        error:function (e) {
            layer.msg("网络在开小差");
        }
    });


}
// 拒绝
function getUserForbidById(id, user_id, icon) {
    $.ajax({
        type: 'POST',
        url: '/admin/stick_cash/forbid',
        data:{
            id:id,
            user_id:user_id,
            amount:icon
        },
        dataType: 'json',
        success:function (e) {
            if (e.code == 200){
                $("#access").disable = false;


            } else{

            }
            layer.msg(e.msg);
            window.location.reload();
        },
        error:function (e) {
            console.log(e);
            return false;
            layer.msg("网络在开小差");
        }
    });
}

// 通过
function getUserResumeById(id,user_id) {
    $.ajax({
        type: 'POST',
        url: '/admin/stick_cash/resume',
        data:{
            id:id,
            user_id:user_id,
        },
        dataType: 'json',
        success:function (e) {
            if (e.code == 200){
                $("#access").disable = false;
            } else{

            }
            layer.msg(e.msg);
            window.location.reload();
        },
        error:function (e) {
            layer.msg("网络在开小差");
        }
    });
}